package me.zhengjie.modules.service.impl.intell;

import lombok.RequiredArgsConstructor;
import me.zhengjie.modules.domain.intellectual.Patent;
import me.zhengjie.modules.repository.intellectual.EnterIntPatentMapper;
import me.zhengjie.modules.service.intell.PatentService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("PatentService")
@RequiredArgsConstructor
public class PatentServiceImpl implements PatentService {

    private final EnterIntPatentMapper enterIntPatentMapper;

    @Override
    public List<Patent> queryPatentByName(String name) {
        return enterIntPatentMapper.selectPatentByName(name);
    }

    @Override
    public List<Patent> queryPatentForPageByConditions(Map<String, Object> map) {
        return enterIntPatentMapper.selectPatentForPageByConditions(map);
    }

    @Override
    public int queryPatentForPageByConditionsToTotal(Map<String, Object> map) {
        return enterIntPatentMapper.selectPatentForPageByConditionsToTotal(map);
    }

    @Override
    public List<String> queryPatentStatus() {
        return enterIntPatentMapper.selectPatentStatus();
    }

    @Override
    public List<String> queryPatentType() {
        return enterIntPatentMapper.selectPatentType();
    }

    @Override
    public List<String> queryPatentAppTime() {
        return enterIntPatentMapper.selectPatentAppTime();
    }

    @Override
    public List<String> queryPatentPubDate() {
        return enterIntPatentMapper.selectPatentPubDate();
    }
}
